package org.jinghouyu.caculator.engine.node;


public class SymbolNode implements Node {

	private Character symbol;
	
	public SymbolNode(Character c) {
		this.symbol = c;
	}
	
	public boolean isMulti() {
		return symbol == '*';
	}
	
	public boolean isDivide() {
		return symbol == '/';
	}
	
	public boolean isPlus() {
		return symbol == '+';
	}
	
	public boolean isMunis() {
		return symbol == '-';
	}
	
	public String toString() {
		return symbol + "";
	}
}
